package org.jeecg.modules.wms.inorder.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.modules.wms.inorder.entity.WmsStockInOrderItems;
import org.jeecg.modules.wms.inorder.entity.WmsStockInOrders;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.wms.inorder.vo.WmsStockInOrdersPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 入库单主表
 * @Author: jeecg-boot
 * @Date:   2025-10-27
 * @Version: V1.0
 */
public interface IWmsStockInOrdersService extends IService<WmsStockInOrders> {
    /**
     * 添加一对多
     *
     * @param wmsStockInOrders
     */
    void add(WmsStockInOrders wmsStockInOrders);

	/**
	 * 修改一对多
	 *
   * @param wmsStockInOrdersPage  主实体对
	 */
	public void updateMain(WmsStockInOrdersPage wmsStockInOrdersPage);

	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
    /**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);

    IPage<WmsStockInOrders> pageList(Page<WmsStockInOrders> page, WmsStockInOrders wmsStockInOrders);

    void submitAudit(WmsStockInOrders inOrder);

    void audit(WmsStockInOrders one);

    /**
     * 收货中更新入库单状态
     * @param stockInOrderId
     */
    String updateStatus(String stockInOrderId);

    String updateStatusPutAway(String stockInOrderId);

}
